package sevensoft.行为型模式.责任链模式;

public class StaffDemo {
    public static void main(String[] args) {
        LeaveRequest leaveRequest = new LeaveRequest("zs",10);
        Handler handlerA = new HandlerA();
        Handler handlerB = new HandlerB();
        Handler handlerC = new HandlerC();

        handlerA.setNextHandler(handlerB);
        handlerB.setNextHandler(handlerC);

        handlerA.submit(leaveRequest);
    }
}
